<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>开工------开工通知</title>

    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--extended-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery.boot.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
    <script type="text/javascript" src="${re.contextPath}/pageoffice.js" id="po_js_main"></script>
</head>
<style>
    .windows {
        background-color: #f8f8f8;
    }

    .popUp {
        width: 90%;
    }

</style>

<body>
<div class="windows">
    <div class="popUp whitebg">
        <div class="popUpTitle ft24 bold">开工通知</div>
        <div class="clearfix mt10">
            <span class="fl">SDZZ-QR005</span>
            <span class="fr">编号：KGTZ-${orderCode}</span>
        </div>
        <div class="popUpBox book">
            <form action="" class="layui-form addform">
                <div class="popUpBox">

                    <table>
                        <tr>
                            <td>工程名称</td>
                            <td>
                                <input type="hidden" name="spfPrjid" value="${spf_prjid}">
                                <input type="hidden" name="fileInd" value="${ind}">
                                <input type="hidden" name="spfStaid" value="${spf_staid}">
                                <input type="hidden" name="spfMilid" value="${spf_milid}">
                                <input type="hidden" name="projectName" value="${pdto.projectName}">
                                <input type="hidden" name="spfFilecode" value="${spfFilecode}">
                                <input type="hidden" name="bfcId" value="16">
                                <input type="hidden" name="orderCode" value="${orderCode}">
                                <input type="hidden" name="fbCode" value="${fbCode}">
                                <input type="hidden" name="pcId" value="${pcId}">
                                <input type="hidden" name="wjNum" value="21">
                                <input type="text" name="spfF1" id="spfF1" value="${pdto.projectName}"
                                       lay-verify="spfF1"
                                       style="width: 100%;"></td>
                        </tr>
                        <tr>
                            <td>业主单位</td>
                            <td><input type="text" name="spfF2" lay-verify="spfF2"
                                       value="${pdto.owerCompany}"></td>
                        </tr>
                        <tr>
                            <td>监理单位</td>
                            <td><input type="text" name="spfF3" lay-verify="spfF3"
                                       value="${pdto.supervisorCompanyName}"></td>
                        </tr>
                        <tr>
                            <td>承建单位</td>
                            <td><input type="text" name="spfF4" lay-verify="spfF4"
                                       value="${cj}"></td>
                        </tr>
                        <tr>
                            <td>内容</td>
                            <td style="padding-top: 20px;">
                                  致：<input type="text" placeholder="承建单位名称" value="${cj}" name="spfF5" lay-verify="spfF5" vtext="承建单位名称不能为空"
                                                 style="width: 30%; border-bottom: 1px solid #CCCCCC;">
                                    <textarea name="spfF6" lay-verify="spfF6">
    [监理单位与业主单位于××××年×月××日接到贵单位的开工申请，经审核开工前的各项准备工作已经就绪，可随时进入现场实施。经监理单位与业主单位研究决定准予贵单位于××××年×月××日上午××：××准时进入现场开始实施。]
                                    </textarea>

                            </td>
                        </tr>
                    </table>
                </div>
                <div class="popUpBtn center">
                    <button type="button" class="blue bgnone close">关闭</button>
                    <button type="button" class="bluebg white" lay-submit lay-filter="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>


<script>
    var layer;
    var form;
    var laydate;
    layui.use(['form', 'laydate', 'layer'], function () {
        layer = layui.layer;
        form = layui.form;
        laydate = layui.laydate;
        // 表单校验
        //$('form').initVerify(form);
        //监听提交
        form.on('submit(submit)', function (data) {
            layerAjax('/supervisor/projectManager/addFormFile', data.field, '', function (d) {
                if (d.flag == true) {
                    var spfId = d.data.spfId;// fmid
                    var fpid = d.data.fpid;// fpid
                    POBrowser.openWindowModeless('/sys/office/openword?ft=2&fmid=' + spfId + '&fpid=' + fpid, 'width=1200px;height=800px;', '{}')
                } else {
                    layer.msg(d.msg, {icon: 2});
                }
                console.log(d);
            });
            return false;

        });

        $('.close').click(function () {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        });
        form.render();


    });

</script>


<!-- 底部结束 -->
</body>
</html>
